package com.zanfeng.signleplatform.dao.persistence.dao;

import com.zanfeng.signleplatform.base.BaseMapper;
import com.zanfeng.signleplatform.dao.persistence.entity.Account;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface AccountMapper extends BaseMapper<Account> {

    //  列表查询
    List<com.zanfeng.signleplatform.api.result.modules.account.AccountResult> queryAccountList(Map paramMap);

    //  根据ID列表逻辑删除
    void deleteAccountListByIdList(List<Integer> idList);

    // 根据用户名查询用户信息
    @Select("select * from wt_account WHERE username = #{username} and is_delete = 0 limit 1")
    Account findAccountByUsername(@Param("username") String username);
}